package com.whm.hrmanagement.service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.baomidou.mybatisplus.extension.service.IService;
import com.whm.hrmanagement.domain.OaStaffAttendance;
import com.whm.hrmanagement.domain.vo.AttendanceMonthVO;
import com.whm.hrmanagement.domain.vo.OaAttendanceVo;
import com.whm.system.domain.dto.UserAttendanceDto;

/**
 * 员工考勤Service接口
 * 
 * @author whm
 * @date 2024-02-06
 */
public interface IOaStaffAttendanceService extends IService<OaStaffAttendance>
{
    /**
     * 查询员工考勤
     * 
     * @param id 员工考勤主键
     * @return 员工考勤
     */
    public OaStaffAttendance selectOaStaffAttendanceById(Long id);
    public List<Map<String, Object>> findAll();
    public OaStaffAttendance findByStaffIdAndDate(Long id, String date);
    public List<AttendanceMonthVO> export(OaAttendanceVo oaAttendanceVo);



    /**
     * 查询员工考勤列表
     * 
     * @param oaStaffAttendance 员工考勤
     * @return 员工考勤集合
     */
    public List<OaStaffAttendance> selectOaStaffAttendanceList (OaStaffAttendance oaStaffAttendance);
    public List<UserAttendanceDto>  selectOaStaffAttendanceList2(OaAttendanceVo oaAttendanceVo);



    /**
     * 新增员工考勤
     * 
     * @param oaStaffAttendance 员工考勤
     * @return 结果
     */
    public int insertOaStaffAttendance(OaStaffAttendance oaStaffAttendance);

    /**
     * 修改员工考勤
     * 
     * @param oaStaffAttendance 员工考勤
     * @return 结果
     */
    public int updateOaStaffAttendance(OaStaffAttendance oaStaffAttendance);

    /**
     * 批量删除员工考勤
     * 
     * @param ids 需要删除的员工考勤主键集合
     * @return 结果
     */
    public int deleteOaStaffAttendanceByIds(Long[] ids);

    /**
     * 删除员工考勤信息
     * 
     * @param id 员工考勤主键
     * @return 结果
     */
    public int deleteOaStaffAttendanceById(Long id);
    public int  setAttendance(OaStaffAttendance oaStaffAttendance);





}
